package kordegi.forumsystem.mapper;

import kordegi.forumsystem.entity.Article;
import kordegi.forumsystem.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SortingMapper {

    @Select("select * from forum_articles where title like #{title}")
    List<Article> sortArticles (String title);

    @Select("select * from forum_user where username like #{username}")
    List<User> sortUser (String username);
}
